//
//  YZMessageHelper.h
//  CocoaAsyncSocketClient
//
//  Created by lixiaoyi on 2018/6/22.
//  Copyright © 2018年 lixiaoyi. All rights reserved.
//

#import <Foundation/Foundation.h>

#import "YZMessageFrame.h"
#import "ImMessage.pbobjc.h"

@interface YZMessageHelper : NSObject

+ (YZMessageFrame *)createMessageFrame:(NSString *)type
                             imMessage:(ImMessage *)yzImMessage
                                  path:(NSString *)path
                               fileKey:(NSString *)fileKey
                              isSender:(BOOL)isSender
                 rececivedSenderbySelf:(BOOL)rececivedSenderbySelf                                                                              senderAvatar:(NSString *)senderAvatar
                        receiverAvatar:(NSString *)receiverAvatar;

// 坐标转换到窗口的位置
+ (CGRect)photoFrameInWindow:(UIButton *)photoView;

// 放大后的图片按钮在窗口的位置
+ (CGRect)photoLargerInWindow:(UIButton *)photoView;

// 根据消息类型得到cell的标识
+ (NSString *)cellTypeWithMessageType:(NSString *)type;


@end
